package com.wbcs.system.tags.component;

import java.io.IOException;

import javax.servlet.jsp.JspException;

import com.wbcs.system.assistant.TagAssistant;

public class HeaderTag extends AbsComponentTag
{
    private static final long serialVersionUID=4032346797072244038L;

    private String top;

    public void setTop(String top)
    {
        this.top=top;
    }

    @Override
	public int doMyStartTag() throws JspException,IOException
    {
        if(this.displayComponentObj==null) return SKIP_BODY;
        return EVAL_BODY_INCLUDE;
    }

    @Override
	public int doMyEndTag() throws JspException,IOException
    {
        if(this.displayComponentObj==null) return EVAL_PAGE;
        TagAssistant.getInstance().printlnTag(out,rrequest,TagAssistant.getInstance().getHeaderFooterDisplayValue(this.displayComponentObj,top,true));
        return EVAL_PAGE;
    }

}
